import pandas as pd

df=pd.read_csv("D:\\天翼云盘\\研一期末\\面向对象\\第三次作业-图形界面\\图形界面作业\\students_information.csv")
df.loc[df["姓名"] == "1号", "房间"] = 5
# 修改后保存
df.to_csv("D:\\天翼云盘\\研一期末\\面向对象\\第三次作业-图形界面\\图形界面作业\\students_information.csv", index=False)
print(df.loc[df["姓名"] == "2号","房间"])


